package purchase;

public class Test {
    public static void main(String[] args) {
        Runnable runnable1 = new BuyTicketThread();
        Thread ticketbooth1 =  new Thread(runnable1,"售票点1");
        Thread ticketbooth2 =  new Thread(runnable1,"售票点2");
        Thread ticketbooth3 =  new Thread(runnable1,"售票点3");
        Thread ticketbooth4 =  new Thread(runnable1,"售票点4");
        Thread ticketbooth5 =  new Thread(runnable1,"售票点5");
        ticketbooth1.start();
        ticketbooth2.start();
        ticketbooth3.start();
        ticketbooth4.start();
        ticketbooth5.start();

    }
}
